package com.icehand.learn.controller;

import com.icehand.learn.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class DemoController {
	@Autowired
	private DemoService demoService;

	@RequestMapping("change1")
	public @ResponseBody boolean change1(){
		return demoService.change1();
	}

	@RequestMapping("change2")
	public @ResponseBody boolean change2(){
		return demoService.change2();
	}
}
